# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-libevt-python
_pkgname=libevt
__pkgname="${_pkgname}-python"
pkgver=20240421
pkgrel=3
pkgdesc='Library and tools to access the Windows Event Log (EVT) format.'
url='https://github.com/libyal/libevt'
arch=('x86_64' 'aarch64')
license=('LGPL3')
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$__pkgname/$__pkgname-$pkgver.tar.gz")
sha512sums=('d874d07bd347b610e56a24068676bd4c374db468812962ab161f7b305aa0000322305988b410760ac7de98d09d9107fb73a70f7605b9293c8fd07a9085590f70')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

